package com.question.dao;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.question.entity.Single;
@Repository
public interface SingleRepository extends PagingAndSortingRepository<Single, Long>, JpaSpecificationExecutor<Single> {
	@Query(value="from Single s where s.num=?1")
	public Single findByNum(String num);
}
